package pkg.andru.net;

/**
 * http request method enum
 * 
 * @author idiottiger
 */
public enum HttpRequestMethod {
    GET(true, false), POST(true, true), PUT(true, true), DELETE(true, false), HEAD(false, false);

    private boolean input, output;

    private HttpRequestMethod(boolean in, boolean out) {
        input = in;
        output = out;
    }

    public boolean getDoInput() {
        return input;
    }

    public boolean getDoOutput() {
        return this.output;
    }

    public String getMethodName() {
        return this.toString();
    }
}
